Inside the Binary Reflected Gray Code: Flip-Swap Languages in 2-Gray Code Order
نویسندگان
چکیده
A flip-swap language is a set \(\mathbf{S}\) of binary strings length n such that \(\mathbf{S} \cup \{0^n\}\) closed under two operations (when applicable): (1) Flip the leftmost 1; and (2) Swap 1 with bit to its right. Flip-swap languages model many combinatorial objects including necklaces, Lyndon words, prefix normal left factors k-ary Dyck feasible solutions 0-1 knapsack problems. We prove any forms cyclic 2-Gray code when listed in reflected Gray (BRGC) order. Furthermore, generic successor rule computes next string provided membership tester. The generates each aforementioned O(n)-amortized per string, except for words which require \(O(n^{1.864})\)-amortized string. Our work generalizes results on necklaces by Vajnovski [Inf. Process. Lett. 106(3):96−99, 2008].
منابع مشابه
A fractal set from the binary reflected Gray code
The permutation associated with the decimal expression of the binary reflected Gray code with N bits is considered. Its cycle structure is studied. Considered as a set of points, its self-similarity is pointed out. As a fractal, it is shown to be the attractor of a IFS. For large values of N the set is examined from the point of view of time series analysis. PACS numbers: 05.45 Df, 05.45 Tp AMS...
متن کاملOn the Conversion between Binary Code and Binary-Reflected Gray Code on Boolean Cubes
We present a new algorithm for conversion between binary code and binary{re ected Gray code that requires approximately 2K 3 element transfers in sequence for K elements per node, compared to K element transfers for previously known algorithms. For a binary cube of n = 2 dimensions the new algorithm degenerates to yield a complexity of K 2 + 1 element transfers, which is optimal. The new algori...
متن کاملParallel binary reflected Gray code sequence generation on multicore architectures
Taylor & Francis makes every effort to ensure the accuracy of all the information (the “Content”) contained in the publications on our platform. However, Taylor & Francis, our agents, and our licensors make no representations or warranties whatsoever as to the accuracy, completeness, or suitability for any purpose of the Content. Any opinions and views expressed in this publication are the opin...
متن کاملA Gray code for binary subtraction
We present a 3-close Gray code for the Binary Subtraction Problem that can be implemented to run in constant amortized time.
متن کاملThe Gray Code
Here we summarise the properties and algorithms of the Gray code. Descriptions are given of the Gray code definition, algorithms and circuits for generating the code and for conversion between binary and Gray code, for incrementing, counting, and adding Gray code words. Some interesting applications of the code are also treated. Java implementations of the algorithms in this paper are available...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Lecture Notes in Computer Science
سال: 2021
ISSN: ['1611-3349', '0302-9743']
DOI: https://doi.org/10.1007/978-3-030-85088-3_15